package com.xzit.homework;

import java.math.BigDecimal;

public class SalaryConverter {
    public static BigDecimal convert(Double salary) throws IllegalAccessException {
        if(salary == null){
            throw new IllegalAccessException("工资不能为空");
        }
        return BigDecimal.valueOf(salary);
    }
}
